package com.ld.admin.model.oa;

import java.util.Date;

import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;
import com.ld.shieldsb.common.web.model.BasicIdEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * 书籍借阅管理(oa_books_manage)
 * 
 * @ClassName OaBooksManageModel
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年06月12日 09:39:36
 *
 */
@Model(name = "书籍借阅管理")
@TableName("oa_books_manage")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OaBooksManageModel extends BasicIdEntity {
    private static final long serialVersionUID = 1890015150937872706L;

    /*书名称*/
    private String bookName;
    /*作者*/
    private String author;
    /*图片路径*/
    private String imgPath;
    /*购买日期*/
    private Date buyDate;
    /*购买价格*/
    private Double buyPrice;
    /*借阅状态，0可借阅1已借阅2其他不可借阅情况*/
    private Integer borrowState;
    /*当前借阅人id*/
    private Long borrowerId;
    /*当前借阅人姓名*/
    private String borrowerName;
    /*创建人姓名*/
    private String createName;
    /*修改人姓名*/
    private String updateName;

//    @Link(field = "id", targetField = "bookid")
//    private List<OaBooksBorrowRecordModel> records;
}
